<script type="text/javascript">
	function ULen(str)
	{
		regex = new RegExp("^[\u4e00-\u9fa5|\uFF00-\uFFFF]+$");
		var nLength = str.length;
		for(var i=0; i<str.length; i++)
		{
		if (regex.test(str.substring(i,i+1)))  
			nLength++;
		}
		return nLength;

	}	
	function FillSpace(str,len){
		var u=ULen(str.toString());
        if(u%2!=0){
            str+=" ";
            u+=1;
        }
		var sp = new Array((len-u)/2+1).join("　");
		return str+sp;
	}
    function checkpws(pws){
      //密码检查要包含字母和数字，并且长度>6
      var reg = new  RegExp("^(?![^a-zA-Z]+$)(?!\D+$).{6,}$");
      //alert(reg.test(pws));
      return reg.test(pws);
    }
</script>
